import request from '@/utils/request'

// 查询资金预算列表
export function listFundbudget(query) {
  return request({
    url: '/supply/fundbudget/list',
    method: 'get',
    params: query
  })
}

// 查询资金预算详细
export function getFundbudget(id) {
  return request({
    url: '/supply/fundbudget/' + id,
    method: 'get'
  })
}

// 新增资金预算
export function addFundbudget(data) {
  return request({
    url: '/supply/fundbudget',
    method: 'post',
    data: data
  })
}

// 修改资金预算
export function updateFundbudget(data) {
  return request({
    url: '/supply/fundbudget',
    method: 'put',
    data: data
  })
}

// 删除资金预算
export function delFundbudget(id) {
  return request({
    url: '/supply/fundbudget/' + id,
    method: 'delete'
  })
}
